<div data-ng-controller="LoginCtrl">
	<div class="row">
		<div class="col-md-4 col-md-offset-4">
			<div class="login-panel panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">Please Login</h3>
				</div>
				<div class="panel-body">
					<div ng-show="error" class="alert alert-danger" role="alert">
						<strong>Error!</strong> {{error}}
					</div>
					<form name="registration" novalidate role="form" data-ng-submit="login()">
						<div class="form-group" data-ng-class="{'has-error': registration.uname.$invalid && registration.uname.$touched}">
							<div class="input-group">
					          	<div class="input-group-addon"><i class="fa fa-user"></i></div>
								<input class="form-control" name="uname" placeholder="E-mail" name="email" type="email" autofocus 
									required data-ng-model="uname">
							</div>
						</div>
						<div class="form-group" data-ng-class="{'has-error': registration.pwd.$invalid && registration.pwd.$touched}">
							<div class="input-group">
					          	<div class="input-group-addon"><i class="fa fa-lock"></i></div>
								<input class="form-control" name="pwd" placeholder="Password" name="password" type="password" 
									required data-ng-model="pwd">
							</div>
						</div>
						<div class="checkbox">
							<label> 
								<input name="terms" type="checkbox" data-ng-model="remember"> Remember Me
							</label>
						</div>
						<button type="submit" class="btn btn-lg btn-info btn-block" 
								data-ng-disabled="registration.$invalid">
							Login <span><i class="fa fa-sign-in"></i></span>
						</button>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>